﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:Avanade="urn:Avanade" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'>
  <xsl:template match="/">
    <input type="hidden" name="selectedButton" value="" />
    <!-- Volet de visualisation -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Webpart ANNONCE">
	  <tr>
		<td style="background-color:#ffffff;width:20%;vertical-align:top;height:0%;padding-top:10px;padding-right:10px;font-size:10px;border-right:solid 1px #88c917">
		  <script type="text/javascript">
			function showPreviewVP(o)
			{
			  f = document.getElementById('previewPane');
			  f.innerHTML =  unescapeProperly(o.getAttribute('Preview'))+'&amp;nbsp;';
			}
		  </script>
		  <ul>
			<xsl:for-each select="xml/rs:data/z:row">
			  <li type="square" style="color:#4f4f4f">
				<span style="text-transform:uppercase;color:#4f4f4f;font-weight:bold">
				  <xsl:value-of select="current()/@ows_Surtitre" />
				</span>
				<br />
				<a style="font-size:11px;font-weight:bold" onmouseover="showPreviewVP(this);" onfocus="showPreviewVP(this);">
				  <xsl:if test="normalize-space(//BaseUrl) != ''">
					<xsl:attribute name="href">
					  <xsl:value-of select="//BaseUrl" />
					  <xsl:value-of select="current()/@ows_ID" />
					</xsl:attribute>
				  </xsl:if>
				  <xsl:attribute name="Preview">
					<xsl:value-of select="current()/@ows_Preview" />
				  </xsl:attribute>
				  <span style="color:#f21e8c">
					<xsl:value-of select="current()/@ows_Title" />
				  </span>
				</a>
				<span style="color:gray;font-size:8px;font-weight:bold">
				  (<xsl:value-of select="Avanade:FormatDate(current()/@ows_Created)" />)
				</span>
				<br />
			  </li>
			  <br />
			</xsl:for-each>
		  </ul>
		</td>
		<td id="previewPane" style="background-color:#ffffff;width:80%;vertical-align:top;height:0%;padding-top:10px;padding-right:10px;font-size:10px;border-left:solid 1px #88c917"></td>
	  </tr>
	</table>
  </xsl:template>
</xsl:stylesheet>